package com.lecyon.farm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 农机基本信息同步表
 *
 * @author YaoZheng
 * @since 2020-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("农机基本信息同步表")
public class FmSyncCar extends Model<FmSyncCar> {

    @Override
    protected Serializable pkVal() {
        return id;
    }

    @TableId(value = "id", type = IdType.NONE)
    @ApiModelProperty(name = "id", value = "主键")
    private Long id;

    @ApiModelProperty(name = "fmCarId", value = "fmCar的主键ID")
    private String fmCarId;

    @ApiModelProperty(name = "carId", value = "主机号")
    private String carId;

    @ApiModelProperty(name = "owner", value = "车主")
    private String owner;

    @ApiModelProperty(name = "ownerPhone", value = "电话")
    private String ownerPhone;

    @ApiModelProperty(name = "workType", value = "作业类型")
    private String workType;

    @ApiModelProperty(name = "width", value = "宽幅")
    private String width;

    @ApiModelProperty(name = "location", value = "区域")
    private String location;

    @ApiModelProperty(name = "province", value = "省份")
    private String province;

    @ApiModelProperty(name = "city", value = "市级")
    private String city;

    @ApiModelProperty(name = "county", value = "区县")
    private String county;

    @ApiModelProperty(name = "towns", value = "乡镇")
    private String towns;

    @ApiModelProperty(name = "cooperation", value = "合作社")
    private String cooperation;

    @ApiModelProperty(name = "company", value = "公司")
    private String company;

    @ApiModelProperty(name = "dept1", value = "机构1")
    private String dept1;

    @ApiModelProperty(name = "dept2", value = "机构2")
    private String dept2;

    @ApiModelProperty(name = "dept3", value = "机构3")
    private String dept3;

    @ApiModelProperty(name = "is_need_sync", value = "是否需要同步")
    private String isNeedSync;

    @ApiModelProperty(name = "del_flag", value = "逻辑删除标记")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;

    @TableField(exist = false)
    private String userToken;

}
